package com.fearless.demo02;

import org.springframework.aop.MethodBeforeAdvice;
import org.springframework.stereotype.Component;

import java.lang.reflect.Method;
import java.util.Date;

//前置通知
@Component
public class Log implements MethodBeforeAdvice {


    public void before(Method method, Object[] args, Object target) throws Throwable {
        System.out.println(new Date()+"功能增强奥  前置通知");

    }
}
